//
//  DevicesCurrentTemperature-CO2Incubator.m
//  iRMAP
//
//  Created by Ryan Enguero on 4/4/14.
//  Copyright (c) 2014 engueroryan. All rights reserved.
//

#import "DevicesCurrentTemperature-CO2Incubator.h"

@implementation DevicesCurrentTemperature_CO2Incubator

- (NSString*)freezerId{
    
    return self.freezerIdStr;
}

- (NSString*)uid{
    
    return self.uidStr;
}

- (NSString*)deviceName{
    
    return self.deviceNameStr;
}

- (NSString*)companyId{
    
    return self.companyIdStr;
}

- (NSString*)measureStatus{
    
    return self.measureStatusStr;
}

- (NSString*)measureName{
    
    return self.measureNameStr;
}

- (NSString*)measureDescription{
    
    return self.measureDescriptionStr;
}

- (NSString*)measureSeverity{
    
    return self.measureSeverityStr;
}

- (NSString*)healthStatusCode{
    
    return self.healthStatusCodeStr;
}

- (NSString*)healthStatusText{
    
    return self.healthStatusTextStr;
}

- (NSString*)healthStatusColor{
    
    return self.healthStatusColorStr;
}

- (NSString*)connectionState{
    
    return self.connectionStateStr;
}

- (NSString*)temperatureSetPoint{

    return _temperatureSetPointStr;
}

- (NSString*)co2SetPoint{

    return _co2SetPointStr;
}
- (NSString*)o2SetPoint{

    return _o2SetPointStr;
}

- (NSString*)temperatureSensor{

    return _temperatureSensorStr;
}
- (NSString*)co2Sensor{

    return _co2SensorStr;
}

- (NSString*)o2Sensor{

    return _o2SensorStr;
}

- (NSString*)rhSensor{

    return _rhSensorStr;
}

-(NSString *)deviceType{

    return self.deviceTypeStr;
}

+ (DevicesCurrentTemperature_CO2Incubator*)devicesWithFreezerID:(NSString*)freezerID andUID:(NSString*)uid andDeviceName:(NSString*)deviceName andCompanyId:(NSString*)companyID andMeasureStatus:(NSString*)measureStatus andMeasureName:(NSString*)measureName andMeasureDescription:(NSString*)measureDescription andMeasureSeverity:(NSString*)measureSeverity andHealthStatusCode:(NSString*)healthStatusCode andHealthStatusText:(NSString*)healthStatustext andHealthStatusColor:(NSString*)healthStatusColor andConnectionState:(NSString*)connectionState andTemperatureSetPoint:(NSString*)temperatureSetPoint andCo2SetPoint:(NSString*)co2SetPoint andO2SetPoint:(NSString*)o2SetPoint andTemperatureSensorStr:(NSString*)temperatureSensor andCo2Sensor:(NSString*)co2Sensor andO2Sensor:(NSString*)o2Sensor andRhSensor:(NSString*)rhSensor andDeviceType:(NSString *)deviceType{
    
    DevicesCurrentTemperature_CO2Incubator *devicesCo2Incubator = [DevicesCurrentTemperature_CO2Incubator
                                                 devicesWithFreezerID:freezerID
                                                 andUID:uid
                                                 andDeviceName:deviceName
                                                 andCompanyId:companyID
                                                 andMeasureStatus:measureStatus
                                                 andMeasureName:measureName
                                                 andMeasureDescription:measureDescription
                                                 andMeasureSeverity:measureSeverity
                                                 andHealthStatusCode:healthStatusCode
                                                 andHealthStatusText:healthStatustext
                                                 andHealthStatusColor:healthStatusColor
                                                 andConnectionState:connectionState andDeviceType:deviceType];
    
    
    devicesCo2Incubator.temperatureSetPointStr = temperatureSetPoint;
    devicesCo2Incubator.co2SetPointStr = co2SetPoint;
    devicesCo2Incubator.o2SetPointStr = o2SetPoint;
    devicesCo2Incubator.temperatureSensorStr = temperatureSensor;
    devicesCo2Incubator.co2SensorStr = co2Sensor;
    devicesCo2Incubator.o2SensorStr = o2Sensor;
    devicesCo2Incubator.rhSensorStr = rhSensor;
    //devicesCo2Incubator.deviceTypeStr = deviceType;
    
    return devicesCo2Incubator;

}


- (NSString*)occuranceTime{

    return _occuranceTimeStr;
}

- (NSString*)highTemperatureLimit{

    return _highTemperatureLimitStr;
}

- (NSString*)lowTemperatureLimit{

    return _lowTemperatureLimitStr;
}

- (NSString*)highCo2Limit{

    return _highCo2LimitStr;
}

- (NSString*)lowCo2Limit{

    return _lowCo2LimitStr;
}

- (NSString*)highO2Limit{

    return _highO2LimitStr;
}

- (NSString*)lowO2Limit{

    return _lowO2LimitStr;
}

- (NSString*)lowRhLimit{

    return _lowRhLimitStr;
}

+ (DevicesCurrentTemperature_CO2Incubator*)devicesWithFreezerID:(NSString*)freezerID andTemperatureSetPoint:(NSString*)temperatureSetPoint andCo2SetPoint:(NSString*)co2SetPoint andO2SetPoint:(NSString*)o2SetPoint andTemperatureSensorStr:(NSString*)temperatureSensor andCo2Sensor:(NSString*)co2Sensor andO2Sensor:(NSString*)o2Sensor andRhSensor:(NSString*)rhSensor andDeviceType:(NSString*)deviceType andOccuranceTime:(NSString*)occuranceTime andHighTemperatureLimit:(NSString*)highTemperatureLimit andLowTemperatureLimit:(NSString*)lowTemperatureLimit andHighCo2Limit:(NSString*)highCo2Limit andLowCo2Limit:(NSString*)lowCo2Limit andHighO2Limit:(NSString*)highO2Limit andLowO2Limit:(NSString*)lowO2Limit andLowRhLimit:(NSString*)lowRhLimit{

    DevicesCurrentTemperature_CO2Incubator *devicesCo2 = [DevicesCurrentTemperature_CO2Incubator devicesWithFreezerID:freezerID andDeviceType:deviceType];
    
    devicesCo2.temperatureSetPointStr = temperatureSetPoint;
    devicesCo2.co2SetPointStr = co2SetPoint;
    devicesCo2.o2SetPointStr = o2SetPoint;
    devicesCo2.temperatureSensorStr = temperatureSensor;
    devicesCo2.co2SensorStr = co2Sensor;
    devicesCo2.o2SensorStr = o2Sensor;
    devicesCo2.rhSensorStr = rhSensor;
   // devicesCo2.deviceTypeStr = deviceType;
    devicesCo2.occuranceTimeStr = occuranceTime;
    devicesCo2.highTemperatureLimitStr = highTemperatureLimit;
    devicesCo2.lowTemperatureLimitStr = lowTemperatureLimit;
    devicesCo2.highCo2LimitStr = highCo2Limit;
    devicesCo2.lowCo2LimitStr = lowCo2Limit;
    devicesCo2.highO2LimitStr = highO2Limit;
    devicesCo2.lowO2LimitStr = lowO2Limit;
    devicesCo2.lowRhLimitStr = lowRhLimit;

    return devicesCo2;
    
}


//

- (NSString*)occuranceTimeAlarm{
    
    return _occuranceTimeAlarmStr;
}
- (NSString*)alarmCodeAlarm{
    
    return _alarmCodeAlarmStr;
}

- (NSString*)alarmTextAlarm{
    
    return _alarmTextAlarmStr;
}

- (NSString*)measureStatusAlarm{
    
    return _measureStatusAlarmStr;
}

- (NSString*)measureNameAlarm{
    
    return _measureNameAlarmStr;
}

- (NSString*)measureDescriptionAlarm{
    
    return _measureDescriptionAlarmStr;
}

- (NSString*)measureSeverityAlarm{
    
    return _measureSeverityAlarmStr;
}

- (NSString*)cronStatusAlarm{
    
    return _cronStatusAlarmStr;
}

+ (DevicesCurrentTemperature_CO2Incubator*)alarmDevicesType:(NSString*)deviceType andFreezerID:(NSString*)freezerID andFreezerName:(NSString*)freezerName andCompanyID:(NSString*)companyID andChamberTemperaturesSensor:(NSString*)chamberTemperatureSensor andChamberSetPoint:(NSString*)chamberSetPoint andOccuranceTime:(NSString*)occuranceTime andAlarmCode:(NSString*)alarmCode andAlarmText:(NSString*)alarmText andMeasureStatus:(NSString*)measureStatus andMeasureName:(NSString*)measureName andMeasureDescription:(NSString*)measureDescription andMeasureSeverity:(NSString*)measureSeverity andCronStatus:(NSString*)cronStatus{
    
    DevicesCurrentTemperature_CO2Incubator *deviceIncubator = [DevicesCurrentTemperature_CO2Incubator
                                                alarmEventDevicesWithDeviceType:deviceType
                                                andFreezerID:freezerID
                                                andFreezerName:freezerName
                                                andCompanyID:companyID];
    
    
    deviceIncubator.occuranceTimeAlarmStr = occuranceTime;
    deviceIncubator.alarmCodeAlarmStr = alarmCode;
    deviceIncubator.alarmTextAlarmStr = alarmText;
    deviceIncubator.measureStatusAlarmStr = measureStatus;
    deviceIncubator.measureNameAlarmStr = measureName;
    deviceIncubator.measureDescriptionAlarmStr = measureDescription;
    deviceIncubator.measureSeverityAlarmStr = measureSeverity;
    deviceIncubator.cronStatusAlarmStr = cronStatus;
    
    return deviceIncubator;
}


- (NSString*)occuranceTimeEvent{
    
    return _occuranceTimeEventStr;
}

- (NSString*)eventCode{
    
    return _eventCodeStr;
}

+ (DevicesCurrentTemperature_CO2Incubator*)eventDeviceType:(NSString*)deviceType andFreezerID:(NSString*)freezerID andFreezerName:(NSString*)freezerName andCompanyID:(NSString*)companyID andChamberTemperatureSensor:(NSString*)chamberTemperatureSensor andChamberSetPoint:(NSString*)chamberSetPoint andOccuranceTime:(NSString*)occuranceTime andEventCode:(NSString*)eventCode{
    
    DevicesCurrentTemperature_CO2Incubator *deviceIncubator = [DevicesCurrentTemperature_CO2Incubator
                                                alarmEventDevicesWithDeviceType:deviceType
                                                andFreezerID:freezerID
                                                andFreezerName:freezerName
                                                andCompanyID:companyID];
    
    
    deviceIncubator.occuranceTimeEventStr = occuranceTime;
    deviceIncubator.eventCodeStr = eventCode;
    
    return deviceIncubator;
    
}




@end
